Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import json
# Colors
icon_color = "#8FCB9B" # pastel green
line_color = "#cdd6f4" # default line color
# Pango markup: line + Spotify logo icon with spaces
text = f"<span foreground='{line_color}'>|</span>\u00A0<span foreground='{icon_color}'></span>\u00A0"
#!/usr/bin/env python3
import requests
import json
import sys
from datetime import datetime
import calendar
import pathlib
import time
import pickle
import html
@bonniss
bonniss / github-search-cheatsheet.md
Last active February 5, 2026 19:42
Github search cheatsheet from official docs.

Github Search Cheat Sheet

GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.

For more information, visit our search help section.

Basic search

#!/usr/bin/env python3
# ----------------------------------------------------------------------------
# WAYBAR MEMORY MODULE
# ----------------------------------------------------------------------------
# A dynamic memory monitor for Waybar.
# Features:
# - Real-time RAM usage with color-coded states
# - Tooltip with detailed breakdown (Used, Cached, Buffers)
# - Auto-detects memory modules via dmidecode (requires sudo permissions)
# - Temperature monitoring (requires lm_sensors)
@merlinmann
merlinmann / glossary.html
Last active February 5, 2026 19:42
Glossary of Hub Jargon — Merlin + Claude collaboration terms
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Glossary of Hub Jargon</title>
<style>
body { font-family: Georgia, serif; max-width: 720px; margin: 2em auto; padding: 0 1em; line-height: 1.6; color: #333; }
h1 { font-size: 1.8em; margin-bottom: 0.2em; }
h2 { font-size: 1.3em; margin-top: 2em; border-bottom: 1px solid #ccc; padding-bottom: 0.3em; }
.subtitle { color: #666; margin-top: 0; }
#!/usr/bin/env python3
# ----------------------------------------------------------------------------
# WAYBAR CPU MODULE
# ----------------------------------------------------------------------------
# CPU monitoring script for waybar.
# Features:
# - Per-core usage visualization (Die layout)
# - Power usage (RAPL)
# - Temperature monitoring
# - Top processes consuming CPU
@spvkgn
spvkgn / capture_tls_quic.py
Last active February 5, 2026 19:40
Capture TLS ClientHello / QUIC Initial
#!/usr/bin/env python3
"""
capture_tls_quic.py — Capture TLS ClientHello and QUIC Initial
-t : capture TLS ClientHello (default)
-q : capture QUIC Initial
-a : capture both (TLS + QUIC)
"""
from __future__ import annotations
@OmerFarukOruc
OmerFarukOruc / claude.md
Last active February 5, 2026 19:40
AI Agent Workflow Orchestration Guidelines

AI Coding Agent Guidelines (claude.md)

These rules define how an AI coding agent should plan, execute, verify, communicate, and recover when working in a real codebase. Optimize for correctness, minimalism, and developer experience.


Operating Principles (Non-Negotiable)

  • Correctness over cleverness: Prefer boring, readable solutions that are easy to maintain.
  • Smallest change that works: Minimize blast radius; don't refactor adjacent code unless it meaningfully reduces risk or complexity.
@horacio3m
horacio3m / conventional_commit_messages.md
Last active February 5, 2026 19:35 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commit Messages

Types

  • feat Commits, that adds or remove a new feature
  • fix Commits, that fixes a bug
  • refactor Commits, that rewrite/restructure your code, however does not change any API behaviour
  • perf Commits are special refactor commits, that improve performance
  • style Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc)
  • test Commits, that add missing tests or correcting existing tests
  • docs Commits, that affect documentation only
  • build Commits, that affect build components like build tool, ci pipeline, dependencies, project version, ...
  • ops Commits, that affect operational components like infrastructure, deployment, backup, recovery, ...
@dmitry-osin
dmitry-osin / git-cheatsheet-rus.md
Created April 30, 2025 07:37
Шпаргалка по Git

Шпаргалка по Git

Git - это распределённая система контроля версий, которая позволяет отслеживать изменения в файлах, сотрудничать с другими разработчиками и управлять историей проекта.

Основные концепции Git

Репозиторий

Репозиторий (repository) - это хранилище вашего проекта вместе с историей изменений.